# all:testout output/lib/threadPool.so

testout:main.c threadPool.c
	gcc -o $@ $^ -lpthread

# # 构建动态库
output:output/lib/libthreadPool.so
output/lib/libthreadPool.so:threadPool.c threadPool.h
	mkdir -p output/include
	mkdir -p output/lib
	gcc threadPool.c -o output/lib/libthreadPool.so -I./ -lpthread -fPIC -shared
	cp -r threadPool.h output/include

.PHONY:clean
clean:	
	rm -rf testout output
